package com.ad.pet.app.main.desniger.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;
import android.widget.TextView;

import com.ad.pet.R;
import com.ad.pet.common.data.utils.glide.GlideUtil;
import com.ad.pet.models.remote.main.DesingerType;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by SEELE on 2019/6/26.
 */

public class DesnigerColumnAdapter extends BaseQuickAdapter<DesingerType, BaseViewHolder> {


    public DesnigerColumnAdapter(@Nullable List<DesingerType> data) {
        super(R.layout.item_pet_service_layout, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, DesingerType item) {
        ImageView iv_service= helper.getView(R.id.iv_service);
        TextView tvTitle = helper.getView(R.id.tv_name);
        TextView tvPrice = helper.getView(R.id.tv_price);
        GlideUtil.load(mContext,item.getPic_cover_small(),iv_service);
        tvTitle.setText(item.getOffservice_name());
        tvPrice.setText("￥"+item.getPrice());
    }
}
